package com.yimi.yinhepda.entity.response;

import com.yimi.yinhepda.db.table.CompanyTable;

import java.util.List;

/**
 * @author 000432
 * @date 2017/4/6
 * 公司返回类
 */
public class CompanyResponse {
  private Data data;
  private boolean success;
  private String[] errorMessages;
  private int errorCode;

  public Data getData() {
    return data;
  }

  public void setData(Data data) {
    this.data = data;
  }

  public boolean getSuccess() {
    return success;
  }

  public void setSuccess(boolean success) {
    this.success = success;
  }

  public boolean isSuccess() {
    return success;
  }

  public String[] getErrorMessages() {
    return errorMessages;
  }

  public void setErrorMessages(String[] errorMessages) {
    this.errorMessages = errorMessages;
  }

  public int getErrorCode() {
    return errorCode;
  }

  public void setErrorCode(int errorCode) {
    this.errorCode = errorCode;
  }

  public static class Data {
    int totalSize;
    List<CompanyInfo> records;

    public int getTotalSize() {
      return totalSize;
    }

    public void setTotalSize(int totalSize) {
      this.totalSize = totalSize;
    }

    public List<CompanyInfo> getRecords() {
      return records;
    }

    public void setRecords(List<CompanyInfo> records) {
      this.records = records;
    }
  }
}
